package cn.touna.jss.common.properties.disconf;

import com.baidu.disconf.client.common.annotations.DisconfFile;
import com.baidu.disconf.client.common.annotations.DisconfFileItem;
import org.springframework.stereotype.Component;

/**
 * <P>描述</P>
 * User: tianhuaxing
 * Date: 2017/8/1
 * Time: 16:15
 */
@Component
@DisconfFile(targetDirPath = "disconf", filename = "xinyan.properties")
public class XinyanProperties {

    /**
     * 新颜接口网址
     */
    private String washblackUrl;
    /**
     * 新颜证书路径
     */
    private String certPath;
    /**
     * 新颜编码形式
     */
    private String charSet = "UTF-8";
    /**
     * 新颜私钥文件
     */
    private String pfxName;
    /**
     * 新颜公钥密码
     */
    private String pfxPwd;
    /**
     * 新颜公钥文件
     */
    private String cerName;
    /**
     * 商家号
     */
    private String memberId;
    /**
     * 终端号
     */
    private String terminalId;
    /**
     * 数据形式
     */
    private String dataType;

    @DisconfFileItem(name = "washblackUrl", associateField = "washblackUrl")
    public String getWashblackUrl() {
        return washblackUrl;
    }

    public void setWashblackUrl(String washblackUrl) {
        this.washblackUrl = washblackUrl;
    }

    @DisconfFileItem(name = "cert.path", associateField = "certPath")
    public String getCertPath() {
        return certPath;
    }

    public void setCertPath(String certPath) {
        this.certPath = certPath;
    }

    @DisconfFileItem(name = "char.set", associateField = "charSet")
    public String getCharSet() {
        return charSet;
    }

    public void setCharSet(String charSet) {
        this.charSet = charSet;
    }

    @DisconfFileItem(name = "pfx.name", associateField = "pfxName")
    public String getPfxName() {
        return pfxName;
    }

    public void setPfxName(String pfxName) {
        this.pfxName = pfxName;
    }

    @DisconfFileItem(name = "pfx.pwd", associateField = "pfxPwd")
    public String getPfxPwd() {
        return pfxPwd;
    }

    public void setPfxPwd(String pfxPwd) {
        this.pfxPwd = pfxPwd;
    }

    @DisconfFileItem(name = "cer.name", associateField = "cerName")
    public String getCerName() {
        return cerName;
    }

    public void setCerName(String cerName) {
        this.cerName = cerName;
    }

    @DisconfFileItem(name = "member.id", associateField = "memberId")
    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    @DisconfFileItem(name = "terminal.id", associateField = "terminalId")
    public String getTerminalId() {
        return terminalId;
    }

    public void setTerminalId(String terminalId) {
        this.terminalId = terminalId;
    }

    @DisconfFileItem(name = "data.type", associateField = "dataType")
    public String getDataType() {
        return dataType;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType;
    }
}
